package com.maxus.mini.ecard.entity.user;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.maxus.mini.common.VersionedAuditableIdEntity;
import com.maxus.mini.common.ElumClass.UserStatus;

/**
 * 用户
 * 
 * @author wujinsong
 *
 */
@Entity
@Table(name = "ecard_user")
public class User extends VersionedAuditableIdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2289942401582743917L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Override
	public Long getId() {
		return id;
	}

	/**
	 * 用户openid
	 */
	private String openid;

	/**
	 * 用户昵称
	 */
	private String nickname;

	/**
	 * 用户图像
	 */
	private String header;

	/**
	 * 进入时间
	 */
	private Date enterTime;

	/**
	 * 用户状态
	 */
	private String status = UserStatus.正常.name();

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header;
	}

	public Date getEnterTime() {
		return enterTime;
	}

	public void setEnterTime(Date enterTime) {
		this.enterTime = enterTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
}
